cmake_minimum_required(VERSION 3.16)
project(PnPSolver)

set(CMAKE_CXX_STANDARD 14)

find_package(Eigen3 REQUIRED)
find_package(Ceres REQUIRED)
find_package(OpenCV REQUIRED)

include_directories(
    ${EIGEN3_INCLUDE_DIRS}
    ${CERES_INCLUDE_DIRS}
    ${OpenCV_INCLUDE_DIRS}
)

add_executable(pnp_solver
    main.cpp
)

target_link_libraries(pnp_solver
    ${CERES_LIBRARIES}
    ${OpenCV_LIBS}
)

add_executable( pose_estimation_3d2d pose_estimation_3d2d.cpp )
target_link_libraries( pose_estimation_3d2d 
   ${OpenCV_LIBS}
   ${CERES_LIBRARIES}
)